home *** CD-ROM | disk | FTP | other *** search
- In a message of 18 Apr 96, Yvon wrote to :
-
- YR> Use the ICA_TARGET,ICTARGET_IDCMP tag on both gadgets and listen for
- YR> IDCMP_IDCMPUPDATE messages. msg->IAddress points to the gadget.
-
- Really? IAddress doesn't refer to the gadget at least. Isn't it supposed to
- point to a taglist?
-
- [Later...]
-
- Yep, seems to be a taglist with the GA_ID, and the new attributes, in HSB
- format.
-
- I've also managed to get things working properly. However, it turned out to
- be easier to not use this tag list. Then I don't need to keep track of
- current values. I simply ask the wheel for them. ;)
-
- YR> Yes, assuming you have coupled them by using the WHEEL_GradientSlider
- YR> tag, you can GetAttr() WHEEL_HSB from the colorwheel gadget. Don't try
- YR> to get WHEEL_RGB because that won't work properly. Use
- YR> ConvertHSBToRGB() afterwards if you need RGB values.
-
- Ok, thanks for your help. But what is the problem with WHEEL_RGB? It seems
- to work just fine here...
-
- --
- Magnus Holmgren - Amiga programmer and enthusiast
-
-
-